package packageModel;

import java.io.Serializable;

/**
 *
 * @author Lionel & Julien
 * 
 */
public class Composition implements Serializable {
    
    /*
     * COMPOSITION : 
     */
    
    /*
     * VARIABLE 
     */
    private int compoId;
    private Commande numCde;
    private Syllabus syllabus;
    private int quantite;
    private double prix;
    
    /*
     * CONSTRUCTEUR
     */

    /**
     * 
     * @param compoId
     * @param numCde
     * @param syllabus
     * @param quantite
     * @param prix
     */
    public Composition(int compoId, Commande numCde, Syllabus syllabus, int quantite, double prix) {
        this.compoId = compoId;
        this.numCde = numCde;
        this.syllabus = syllabus;
        this.quantite = quantite;
        this.prix = prix;
    }
    
    /**
     * 
     * @param syllabus
     * @param quantite
     * @param prix
     */
    public Composition(Syllabus syllabus, int quantite, double prix) {
        this.syllabus = syllabus;
        this.quantite = quantite;
        this.prix = prix;
    }
    
    /*
     * GET
     */

    /**
     * 
     * @return compoId
     */
    public int getCompoId() { return compoId; }
    /**
     * 
     * @return numCde
     */
    public Commande getNumCde() { return numCde; }
    /**
     * 
     * @return syllabus
     */
    public Syllabus getSyllabus() { return syllabus; }
    /**
     * 
     * @return quantite
     */
    public int getQuantite() { return quantite; }
    /**
     * 
     * @return prix
     */
    public double getPrix() { return prix; }
    
    /*
     * SET
     */
    
    /**
     * 
     * @param compoId
     */
    public void setCompoId(int compoId) { this.compoId = compoId; }
    /**
     * 
     * @param numCde
     */
    public void setNumCde(Commande numCde) { this.numCde = numCde; }
    /**
     * 
     * @param syllabus
     */
    public void setDateCommande(Syllabus syllabus) { this.syllabus = syllabus; }
    /**
     * 
     * @param quantite
     */
    public void setQuantite(int quantite) { this.quantite = quantite; }
    /**
     * 
     * @param prix
     */
    public void setPrix(double prix) { this.prix = prix; }
    
}
